#include<Windows.h>
#include<tchar.h>
#include<stdio.h>
int CDECL MessageBoxPrint(const TCHAR* szCaption, const TCHAR* szFormat, ...)
{
	TCHAR szBuffer[1024];
	va_list Ap;
	va_start(Ap, szFormat);
	wvsprintf(szBuffer, szFormat, Ap);
	va_end(Ap);
	return MessageBox(NULL, szBuffer, szCaption, NULL);
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
	int iyS = 0, ixS = 0;
	ixS = GetSystemMetrics(SM_CXSCREEN);
	iyS = GetSystemMetrics(SM_CYSCREEN);
	MessageBoxPrint(TEXT("The Screen Size"), TEXT("The x = %i , The y = %i"), ixS, iyS);
	return 0;
}